let Runtime = require('../runtime/index')
let Modules = require('../modules')
let SessionStore = Runtime.SessionStore

let topo = {
    userList: [],
    serviceList: [],
    dbList: [],
    rpcList: [],
	'/api/agent/sys/topology': {
		method: 'post',
		mock: false,
		callback: function(req, res, callback) {
			var systemId = req.body.systemId
            var interval = req.body.interval
            var result = {}
            if(systemId && interval){
                Modules.topo.getTopoData(req.body)
                    .then(result => {
                            callback(result)
                        })
            }else{
                result.code = -1
				result.success = false
				result.msg = '参数错误！'
				callback(actionResult)
            }
		}
	},

    
}

module.exports = topo